package svgedit.gui.actions;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

import svgedit.gui.Frame;
import svgedit.gui.Listener;
import svgedit.gui.View;

/*
* this code currently points to frame. I tried changing it
* to view but it still draws behind the view on the frame. Only 2
* classes are used to draw rects. This class and Listener.java
* change/move whatever code u want and see if it paints onto view instead
*/


public class DrawRect extends JFrame implements ActionListener{

	private Frame parentFrame;
	private View view;
	
	public DrawRect(Frame frame) {
		parentFrame=frame;
	}
	 
	@Override
	public void actionPerformed(ActionEvent arg0) {
		parentFrame.add(new Listener());	
	}

}
